Skip to content

src: simplify TCPWrap::Connect signature#62929

Open
addaleax wants to merge 1 commit intonodejs:mainfrom
addaleax:tcp-align-connect-with-bind
Open

src: simplify TCPWrap::Connect signature#62929
addaleax wants to merge 1 commit intonodejs:mainfrom
addaleax:tcp-align-connect-with-bind

Conversation

@addaleax
Copy link
Copy Markdown
Member

Just a little piece of cleanup -- this aligns TCPWrap::Connect with its sibling TCPWrap::Bind, deduplicates code and removes an unnecessary heap allocation.

Just a little piece of cleanup -- this aligns `TCPWrap::Connect`
with its sibling `TCPWrap::Bind`, deduplicates code and removes
an unnecessary heap allocation.

Signed-off-by: Anna Henningsen <anna@addaleax.net>
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. net Issues and PRs related to the net subsystem. labels Apr 24, 2026
@addaleax addaleax added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Apr 24, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 24, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.63%. Comparing base (2428030) to head (da160ff).
⚠️ Report is 36 commits behind head on main.

Files with missing lines Patch % Lines
src/tcp_wrap.cc 83.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #62929      +/-   ##
==========================================
- Coverage   89.63%   89.63%   -0.01%     
==========================================
  Files         706      706              
  Lines      219219   219212       -7     
  Branches    42004    42000       -4     
==========================================
- Hits       196499   196489      -10     
- Misses      14622    14630       +8     
+ Partials     8098     8093       -5     
Files with missing lines Coverage Δ
src/tcp_wrap.h 66.66% <ø> (ø)
src/tcp_wrap.cc 70.32% <83.33%> (-0.03%) ⬇️

... and 46 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@addaleax addaleax added the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 24, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue Add this label to land a pull request using GitHub Actions. needs-ci PRs that need a full CI run. net Issues and PRs related to the net subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants